require.mx('mxjs/mesh/clean-mesh.js');
This is the clean mesh library.
Status | Name |
---|---|
Boolean checkForIntersections
(
Object mesh,
Object edgeList,
Object subgraphs
)
Check if mesh has faces that are intersecting. Requires Triangle Normals already be calculated. |
|
Object cleanClosedMesh
(
Object settings
)
Determines if a point is inside a mesh. Assumes that each subgraph in the mesh is close and cleaned (see clean-mesh.js library).
|
|
patchHoles
(
Object mesh
)
Patches holes in match surface Should de-duplify mesh first. |
|
removeDuplicateFaces
(
Object mesh
)
Removes duplicate faces from object |
Check if mesh has faces that are intersecting. Requires Triangle Normals already be calculated.
Parameters:Object
mesh - - Mesh-TA object.Object
edgeList - - Mesh-TA EdgeList object.Object
subgraphs - - Mesh-TA subgraphs object.Boolean
result - - Return true if mesh has intersections and false otherwiseDetermines if a point is inside a mesh. Assumes that each subgraph in the mesh is close and cleaned (see clean-mesh.js library).
Object
settings - - an object containing configuration with keys/values as described.Object
results - - an object containing configuration with keys/values as described.Patches holes in match surface Should de-duplify mesh first.
Parameters:Object
mesh - - Mesh-TA object.Removes duplicate faces from object
Parameters:Object
mesh - - Mesh-TA object.